import request from '@/utils/request'

// 查询开掘队信息列表
export function listDrivingTeam(query) {
  return request({
    url: '/dispatch/drivingTeam/list',
    method: 'get',
    params: query
  })
}

// 查询开掘队信息详细
export function getDrivingTeam(drivingTeamId) {
  return request({
    url: '/dispatch/drivingTeam/' + drivingTeamId,
    method: 'get'
  })
}

// 新增开掘队信息
export function addDrivingTeam(data) {
  return request({
    url: '/dispatch/drivingTeam',
    method: 'post',
    data: data
  })
}

// 修改开掘队信息
export function updateDrivingTeam(data) {
  return request({
    url: '/dispatch/drivingTeam',
    method: 'put',
    data: data
  })
}

// 删除开掘队信息
export function delDrivingTeam(drivingTeamId) {
  return request({
    url: '/dispatch/drivingTeam/' + drivingTeamId,
    method: 'delete'
  })
}
